home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20031118-20041115
/
000298_fdc@columbia.edu_Tue May 25 10:11:50 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: inserting current date into kermit ftp string?
Date: 25 May 2004 14:11:40 GMT
Organization: Columbia University
Lines: 29
Message-ID: <slrncb6l0s.qi0.fdc@sesame.cc.columbia.edu>
References: <369707c7.0405250522.57de029a@posting.google.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1085494300 13614 128.59.59.56 (25 May 2004 14:11:40 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 25 May 2004 14:11:40 GMT
User-Agent: slrn/0.9.8.0 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15026
On 2004-05-25, Matt <mjrosier@bulldog.unca.edu> wrote:
: What's the easiet way to get the year, month and day in numeric format
: and insert it into a specific line of a kermit ftp script?
:
: I have an ftp script I am using in kermit, and the following line is
: date dependent:
:
: ftp cd pub/data/nccf/com/eta/prod/eta.20040520/
:
: eta.20040520 is the part that will change depending on date.
:
For today's date:
ftp cd pub/data/nccf/com/eta/prod/eta.\v(ndate)/
\v(ndate) is a built-in variable that is replaced by the current date
in numeric yyyymmdd format.
For an arbitrary date... Well I guess the easiest way is to just
put it in the string:
ftp cd pub/data/nccf/com/eta/prod/eta.20051231/
Maybe you didn't say what you really wanted? Anyway Kermit has everything
you'd want for constructing and manipulating dates; see:
http://www.columbia.edu/kermit/ckermit70.html#x1.6
- Frank